<?php

require_once "core/application/models/bans/mbans2.php";

class Mbans3 extends Mbans2 {

    private $_query;

    protected function del_ban($id) {
        /**
         *  удаляем бан
         * @param int $id
         */
        DB::getInstance()->openConnectionToLS();
        $this->_query = "DELETE FROM `banned_ip` WHERE `id` = '$id'";
        return DB::getInstance()->sql($this->_query);
        DB::getInstance()->closeConnection();
        unset($this->_query);
    }

}

?>
